
#include "netclientmodel.h"

#include <QCoreApplication>
#include <DLog>

#ifdef QT_DEBUG
#include <sanitizer/asan_interface.h>
#endif

DCORE_USE_NAMESPACE

int main(int argc, char **argv) {
    QCoreApplication app(argc, argv);
    app.setOrganizationName("SGIC");
    app.setApplicationName("org.sgic.local.http");
    app.setApplicationVersion("2023.1.0");

    QDir().mkdir("/var/log/SGIC");
    DLogManager::setlogFilePath("/var/log/SGIC/org.sgic.local.http.log");
    DLogManager::registerConsoleAppender();
    DLogManager::registerFileAppender();

    // 启动后端逻辑项
    NetClientModel model;

    return app.exec();
}
